package com.an.blog.admin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.an.common.annotation.ExcelDictFormat;
import com.an.common.convert.ExcelDictConvert;
import lombok.Data;


/**
 * 博客分类视图对象 blog_category
 *
 * @author Ann
 * @date 2023-05-08
 */
@Data
@ExcelIgnoreUnannotated
public class BlogCategoryVo {

    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @ExcelProperty(value = "分类id")
    private Long categoryId;

    /**
     * 分类名称
     */
    @ExcelProperty(value = "分类名称")
    private String categoryName;

    /**
     * 状态（0正常 1禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=禁用")
    private String status;


}
